import {getModelForClass, prop} from '@typegoose/typegoose'
import { ApiProperty } from '@nestjs/swagger';
export class Post {
    @ApiProperty({ description: '帖子标题', example: '帖子标题1a' })
    @prop()
    title:string
    @ApiProperty({ description: '帖子内容', example: '帖子内容1a' })
    @prop()
    content:string

}
//export const PostModel = getModelForClass(Post)
